import React, { Component } from 'react'
import axios from 'axios';
export default class Index extends Component {
    demo=async()=>{
    console.log(232);
   let data =  await axios.post('http://localhost:3000/images/upload',232);
   console.log(data)
    }
    render() {
        return (
            <div>
                首页 <button onClick={this.demo}>测试接口</button>
            </div>
        )
    }
}
